package com.itheima.health.controller;

import com.itheima.health.common.R;
import com.itheima.health.service.CheckGroupService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;


public class CheckGroupController {

    @Autowired
    private CheckGroupService checkGroupService;

    /**
     * 检查组删除
     * @param id
     * @return
     */
    @RequestMapping("/delete")
    public R<String> delete(Integer id) {
            checkGroupService.deleteById(id);
            return R.success("删除成功");
    }
}
